package J20241026_HashMap;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 王圆豪
 * Date: 2024-10-26
 * Time: 21:59
 */
public class Test {
    public static void main(String[] args) {
        HashBuck2<String, Integer> hashBuck2 = new HashBuck2<>();
        hashBuck2.push("123", 5);
        hashBuck2.push("456", 6);
        hashBuck2.push("798", 7);
        hashBuck2.push("258", 8);
        hashBuck2.push("956", 9);
        hashBuck2.push("135", 2);
        hashBuck2.push("753", 1);
        hashBuck2.push("159", 3);

        System.out.println(hashBuck2.getVal("258"));
    }

    public static void main1(String[] args) {
        HashBuck hashBuck = new HashBuck();
        hashBuck.push(1, 111);
        hashBuck.push(5,555);
        hashBuck.push(4,444);
        hashBuck.push(14,141414);
        hashBuck.push(46,464646);
        hashBuck.push(24,444);
        hashBuck.push(11,141414);
        hashBuck.push(16,141414);
        hashBuck.push(19,141414);

        System.out.println(hashBuck.getVal(19));
    }
}
